package sk.stuba.fiit.foo07.genex.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import sk.stuba.fiit.foo07.genex.beans.QuestionType;

/**
 * @author palo
 * 
 */

public interface QuestionTypeDao {
    /**
     * Method for getting question type by question ID.
     * 
     * @param questionID
     *                id of question
     * @return question type
     * 
     */
    public QuestionType getQuestionTypeByQuestionID(Integer questionID)
            throws SQLException;

    /**
     * Method for getting all question types.
     * 
     * @return question types
     * 
     */
    public ArrayList<QuestionType> getAllQuestionTypes() throws SQLException;

    /**
     * Method for getting question type id by question type name.
     * 
     * @param qTypeName
     *                question type name
     * @return question type id
     * 
     */

    public Integer getQuestionTypeByName(String qTypeName) throws SQLException;
}
